import Vue from 'vue'
import App from './App.vue'
import './style/base.css'
// 在style文件存放iconfont.less 然后导入
import './style/iconfont.less'

// ---------------------全局注册组件
import HmHeader from './components/HmHeader'
import HmLog from './components/HmLog'
import HmButton from './components/HmButton'
import HmInput from './components/HmInput'
import axios from 'axios'
Vue.component('hm-header', HmHeader)
Vue.component('hm-log', HmLog)
Vue.component('hm-button', HmButton)
Vue.component('hm-input', HmInput)

// 导入lib-flexible模块，会自动适应大小屏幕
import 'lib-flexible'
import 'postcss-px2rem'

// 导入路由对象
import router from './router'
axios.defaults.baseURL = 'http://localhost:3000'
Vue.prototype.$axios = axios

// 引入vant组件
import { Button, Toast } from 'vant'
Vue.use(Button)
Vue.use(Toast)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
